import request from '@/utils/request'

//出库单html导出
export function whoutExportHtml(query){
  return request({
    url:'/bill/whoutform/printWhout',
    method:'get',
    params:query
  })
}
//打印出库单html接口
export function whoutPrintHtml(query){
 return request({
   url:'/bill/whoutform/printWhoutHtml/',
   method:'get',
   params:query
 })
}
// 查询出库单列表
export function listWhoutform(query) {
  return request({
    url: '/bill/whoutform/list',
    method: 'get',
    params: query
  })
}

// 查询出库单详细
export function getWhoutform(autoid) {
  return request({
    url: '/bill/whoutform/' + autoid,
    method: 'get'
  })
}

// 新增出库单
export function addWhoutform(data) {
  return request({
    url: '/bill/whoutform',
    method: 'post',
    data: data
  })
}

// 修改出库单
export function updateWhoutform(data) {
  return request({
    url: '/bill/whoutform',
    method: 'put',
    data: data
  })
}

// 删除出库单
export function delWhoutform(autoid) {
  return request({
    url: '/bill/whoutform/' + autoid,
    method: 'delete'
  })
}

// 导出出库单
export function exportWhoutform(query) {
  return request({
    url: '/bill/whoutform/export',
    method: 'get',
    params: query
  })
}
